package com.mc.pattern;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class RegularExpression {
	public static void main(String[] args) {
		Pattern p = Pattern.compile("[0-9]+");
		Matcher m = p.matcher("23987219848219");
		System.out.println(m.matches());
	}
}
